Skip to content

Preserve sub-integer precision during driving re-anchor#241

Merged
kvanbiesen merged 2 commits intokvanbiesen:mainfrom
renaudallard:main
Feb 13, 2026
Merged

Preserve sub-integer precision during driving re-anchor#241
kvanbiesen merged 2 commits intokvanbiesen:mainfrom
renaudallard:main

Conversation

@renaudallard
Copy link
Copy Markdown
Contributor

BMW sends integer SOC. When our prediction (e.g. 54.7%) is within rounding range of BMW's integer (55%), keep the prediction as anchor instead of jumping to the integer. Only correct when BMW disagrees beyond rounding (abs >= 0.5pp).

BMW sends integer SOC. When our prediction (e.g. 54.7%) is within
rounding range of BMW's integer (55%), keep the prediction as anchor
instead of jumping to the integer. Only correct when BMW disagrees
beyond rounding (abs >= 0.5pp).
Continuity check: also keep prediction when BMW is within rounding
(abs < 0.5), not just when BMW >= prediction. Prevents jump from
54.7% to 54% at trip end.

BMW SOC fallback: if existing last_magic_soc is within rounding of
BMW integer, keep the sub-integer value instead of overwriting.
Prevents jump after continuity window expires.
@kvanbiesen kvanbiesen merged commit ddaf143 into kvanbiesen:main Feb 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants